
 
#ifndef OSGGA_GliderMANIPULATOR
#define OSGGA_GliderMANIPULATOR 1

#include <osgGA/FirstPersonManipulator>
#include <osg/Quat>



class XFirstManipulator : public osgGA::FirstPersonManipulator
{
public:
    XFirstManipulator(int flags = DEFAULT_SETTINGS);
 
    virtual const char* className() const { return "XFirstManipulator"; }
    virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us);
    virtual bool handleMouseWheel(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
    void turnRight(float angle);
    void turnUp(float angle);
   // virtual bool handleMouseDrag(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
    virtual bool performMovementRightMouseButton(const double eventTimeDelta, const double dx, const double dy);
    virtual bool performMovementLeftMouseButton(const double eventTimeDelta, const double dx, const double dy);
};

#endif

